<!--银行账户-->
<template>
  <div class="content">
    <div class="ba-header-con">
      <a-alert message="已认证的银行账号将用于账户充值及提现" type="info" show-icon />
<!--      <a-button v-if="btnShow" type="primary" icon="plus" @click="add">新增账户</a-button>
      <span v-if="!btnShow"></span>-->
    </div>

    <bankAccountList :accountConfig='accountConfig'></bankAccountList>

  </div>
</template>

<script>
import bankAccountList from '@views/myAccount/modules/bankAccountList';
export default {
  name: "bankAccount",
  components:{
    bankAccountList
  },
  data(){
    return{
      btnShow: true,
      accountConfig:{
        masterType:1,//1-公户，2-私户
        masterId:null,//masterType为2的情况下传值
        switchShow:false
      }
    }
  },
  props: ['detailList'],
  created() {
    if (this.detailList){
      this.btnShow = false;
    }else {
      this.btnShow = true;
    }
  },
  methods:{
    //新增账户
    add(){
      this.$router.push({
        path: '/myAccount/entAccountManagementAdd',
        query:{
          masterType: 1
        }
      })
    },
    //编辑账户
    edit(){
      this.$router.push({
        path: '/myAccount/entAccountManagementAdd',
        query:{
          masterType: 1,
          masterId: 1
        }
      })
    }
  }
}
</script>

<style scoped lang="less">
.content{
  width: 100%;
}
.ba-header-con {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bci-item-con {
  flex: 4;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  .bci-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    // height: 40px;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    // line-height: 40px;
    margin: 10px 0;

    .bci-label {
      width: 20%;
      color: #666666;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }

    .bci-value {
      // width: 20%;
      color: #333333;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      margin: 0 20px;
    }


  }
}

/deep/.ant-alert-info{
  width: 600px;
  background: #F3F6FD;
  border-radius: 2px;
  border: 1px solid #4167E8;
}
/deep/.ant-alert-info .ant-alert-icon{
  color: #4167E8;
}
</style>
